//
//  CollectionWebViewModel.m
//  mintHome
//
//  Created by 朱彦名 on 16/7/1.
//  Copyright © 2016年 朱彦名. All rights reserved.
//

#import "CollectionWebViewModel.h"

@implementation CollectionWebViewModel
#pragma mark -  归档方法
- (void) encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:_title forKey:@"标题"];
    [aCoder encodeObject:_urlStr forKey:@"网址"];
}
#pragma mark -  解档方法
- (instancetype) initWithCoder:(NSCoder *)coder
{
    self = [super init];
    if (self) {
        // 按照归档时的key取值
        self.title = [coder decodeObjectForKey:@"标题"];
        self.urlStr = [coder decodeObjectForKey:@"网址"];
    }
    return self;
}

@end
